#include<iostream>
#include<vector>
using namespace std;
vector<vector<int>>arr;
int main()
{
	for (int i = 0; i < 9; i++)
	{
		arr.push_back(vector<int>());
	}
	for (int i = 0; i < arr.size(); i++)
	{
		for (int j = 0; j <= i; j++)
		{
			arr[i].push_back((i + 1) * (j + 1));
		}
	}
	for (int i = 0; i < arr.size(); i++)
	{
		for (int j = 0; j < arr[i].size(); j++)
		{
			cout << i + 1 << " * " << j + 1 << " = ";
			printf("%2d  ", arr[i][j]);
		}
		cout << endl;
	}
	return 0;
}